home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.1 / card_7037.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  63 lines

  1. -- card: 7037 from stack: in.1
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2612
  5. -- name: StdFile
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=82 top=302 right=324 bottom=182
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Install
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then pass mouseup
  23.   put installres(XCMD,StdFile) into it
  24.   if it is empty then play oops
  25.   else answer it
  26. end mouseUp
  27.  
  28.  
  29.  
  30. -- part contents for background part 13
  31. ----- text -----
  32. 10
  33.  
  34. -- part contents for background part 2
  35. ----- text -----
  36. StdFile
  37.  
  38. -- part contents for background part 3
  39. ----- text -----
  40.  
  41. Standard File Package positioning. Arrange for the Open and Save dialog boxes of applications to open at a specific folder before you ‚Äúopen‚Äù an application.
  42.  
  43. The command will beep if an error is encountered, and take no further action.
  44.  
  45. HyperCard seems to have the habit of resetting Standard File‚Äôs positioning in its idle handler, so it‚Äôs a good idea to call this XCMD just before you need it.
  46.  
  47. Thanks to:
  48. Dewi Williams
  49. 2227 Juniper Court
  50. Boulder CO 80302
  51. (303) 443 9038
  52. Delphi: DEWI
  53.  
  54.  
  55. -- part contents for background part 10
  56. ----- text -----
  57. Syntax:
  58.  
  59. StdFile("pathname")
  60.  
  61. "pathname" is the path to the volume or folder where the Standard File Package‚Äôs Open and Save dialog boxes should be positioned.
  62.  
  63. Example: StdFile("HD:Telecom:")